import serve from '../../service'
// 注册接口
const register = async function(options) {
    let { data } = await serve.put('/register', options)
    return Promise.resolve(data)
}

// 登录接口
const login = async function(options) {
    let { data } = await serve.post('/login', options)
    return Promise.resolve(data)
}

export {
    register,
    login
}